﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Workflow_Core_API.Persisted;

namespace WorkflowCore.Service.Dto.Fundamentals
{
    /// <summary>
    /// 流程审批
    /// </summary>
    public class WorkflowAuditInput
    {
        /// <summary>
        /// 流程ID
        /// </summary>
        public string WorkflowId { get; set; } = null!;
        /// <summary>
        /// 审批类型 2-驳回，3-审批通过
        /// </summary>
        public OperateType AuditOperateType { get; set; }

        /// <summary>
        /// 审批人
        /// </summary>
        public long UserId { get; set; }

        public string UserName { get; set; }

        /// <summary>
        /// 驳回至某个历史节点的步骤ID
        /// </summary>
        public string? RejectToStepId { get; set; }

        /// <summary>
        /// 审批备注，一般是驳回时有值
        /// </summary>
        public string Remark { get; set; }
    }
}
